using System;

//0922作业二
public class Demo2 {
    private const double OriginalPrice = 8800;
    public static double CalculateTravelPrice(int month, string transport)
    {
        double discount = 0;
        if (month >= 5 && month <= 10)
        {
            discount = transport == "航班" ? 0.9 : 0.75;
        }
        else
        {
            discount = transport == "航班" ? 0.6 : 0.3;
        }
        return OriginalPrice * discount;
    }
}